<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>系统管理员后台 - 家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link href="__TMPL__css/alice.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/style.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/head.js"></script>
	<!--[if lt IE 9]>
	<script src="__TMPL__js/html5.js"></script>
	<![endif]-->
</head> 
<body onload="iframe_height()">
<div id="bodyheight"><!-- 设定iframe框架 --> 

		<div style="width:100%">
    <a class="btn_back" href="__URL__/nav" style="width:20%">课次设定</a> <!-- 当前位置 返回按钮 -->
	</div>
    
	<!-- 内容框架开始 -->
	<div class="main padd6">
		<div class="tab_main clear">
			<!--<a href="lesson_set.html">课次设定</a>-->
			<a href="lesson_time.html" class="cur">课程时段</a>
		</div>
	
		<div class="realmain padd22 clear">

			<!-- 列表内容开始 -->
			<div class="content">
				<form name="content_form" id="content_form" action="__URL__/lessontype_save" method="post" class="tableform">
					<fieldset>
						<legend>课程时段设定</legend>
						<div id="cp_box">
                        <div class="clear" style="min-height:100px">
								<table width="90%" class="content_table flleft">
								<tr class="ui-form-item">
									<td  class="ui-label"><span class="ui-form-required">*</span>课次：</td>
									<td class="ui-td"><input name="type_name" type="text" class="ui-input" id="type_name"></td>				
								</tr>
								<tr class="ui-form-item">
									<td  class="ui-label"><span class="ui-form-required">*</span>时间段：</td>
									<td class="ui-td"><input name="starttime" type="text" class="ui-input  inputtime" id="starttime"> <p class="flleft" style="margin:0 15px 0 0;line-height:25px">至</p> 
								  <input name="endtime" type="text" class="ui-input  inputtime" id="endtime"></td>				
								</tr>
								</table>
                                <input type="submit" class="flleft ui-button ui-button-mgreen" value="添加">
						  </div>
                            
                            
                          <volist name="lessonlist" id="vo">

							<div class="clear" style="min-height:100px">
								<table width="90%" class="content_table flleft">
								<tr class="ui-form-item"><td  class="ui-label"><span class="ui-form-required">*</span>课次：</td><td class="ui-td"><input class="ui-input" type="text" value="{$vo.type_name}"></td></tr>
								<tr class="ui-form-item"><td  class="ui-label"><span class="ui-form-required">*</span>时间段：</td><td class="ui-td"><input class="ui-input  " type="text" value="{$vo.starttime}"> <p class="flleft" style="margin:0 15px 0 0;line-height:25px">至</p> <input class="ui-input  " type="text" value="{$vo.endtime}"></td></tr>
								</table>
								 <a href="" class="flleft ui-button ui-button-mwhite" style="margin-top:25px">删除</a> 
							</div>
							</volist>
							

					  </div>
						<div class="submitdiv">
						  <input type="button" class="ui-button ui-button-mwhite" value="返回" onclick="history.go(-1)">
						</div>
					</fieldset>
				</form>
		
			</div>
			<!-- 列表内容结束 -->
			
		</div>
	</div>
	<!-- 内容框架结束 -->
</div>

 <!--<script type="text/javascript">

function addLink(o /* elem which append to */){
	var jTmp = $('<div class="clear" style="min-height:100px"></div>');
	jTmp.append('<table width="90%" class="content_table flleft"><tr class="ui-form-item"><td  class="ui-label"><span class="ui-form-required">*</span>课次：</td><td class="ui-td"><input class="ui-input" type="text"></td></tr><tr class="ui-form-item"><td  class="ui-label"><span class="ui-form-required">*</span>时间段：</td><td class="ui-td"><input class="ui-input  inputtime" type="text"> <p class="flleft" style="margin:0 15px 0 0;line-height:25px">至</p> <input class="ui-input  inputtime" type="text"></td></tr></table>');
	var jTmp2 = $('<a href="javascript:;" class="flleft ui-button ui-button-mwhite" style="margin-top:25px">删除</a>');
	jTmp2.click(remove);
	jTmp.append(jTmp2);
	$(o).append(jTmp);
	iframe_height();
}

function remove(){
	$(this).parent().remove();
}

$("#cp_box").each(function(){
	var o_this = this;
	$(this).children('div').each(function(i){
		if (i == 0)
		{
			var jTmp = $('<a href="javascript:;" class="flleft ui-button ui-button-mgreen" style="margin-top:25px">添加</a>');
			jTmp.click(function(){
				addLink(o_this);
			});
			$(this).append(jTmp);
		}
		else
		{
			var jTmp = $('<a href="javascript:;" class="flleft ui-button ui-button-mwhite" style="margin-top:25px">删除</a>');
			jTmp.click(remove);
			$(this).append(jTmp);
		}
	});
});
  </script>-->
<iframe width='0' id='top_src' height='0' src=''></iframe>

<include file="Public:foot" />
</body>
</html>